<template>
	<view class="content">
		<rich-text class="help-text" :nodes="about.content"></rich-text>
	</view>
</template>

<script>
	import {
		getByType
	} from "../../api/hotel"
	export default {
		data() {
			return {
				about: {
					content: ""
				}
			}
		},
		onLoad() {
			this.getContent()
		},
		methods: {
			getAboutContent() {
				this.about.content = "关于我们，xxx"
			},
			getContent() {
				getByType({
					type: 0
				}).then((res) => {
					const {
						data
					} = res
					this.about.content = data.content
				}).catch((err) => {
					console.log(err)
				})
			},
		},
	}
</script>

<style>
	.content {
		margin: 40rpx;
	}
</style>